import React, { FC, useEffect, useState, useMemo } from 'react';
import { Utils } from 'lfun-bg-comp';
import School from '@/view/unit/school';
import ConfigClass from './class';

const ApplySchool: FC = () => {
  const isSchool = Utils.getProps('isSchool');
  return isSchool ? <ConfigClass /> : <School isReadOnly={isSchool} viewPath="class" />;
};

export default ApplySchool;
